package com.jia.lidao.others.enity;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/13.
 */

public class CountCash {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513148071
     * calculate_result : {"total_money":4,"coupon_free_money":0,"promotion_free_money":0,"pay_money":4,"merchants":[{"merchant_id":1,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg","name":"测试的店铺"}],"shopping_carts":[{"goods":{"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":1},"shopping_cart_id":104,"goods_id":1,"quantity":4,"buy_limit":2}],"invoice_desc":"发票说明发票说明发票说明发票说明发票说明发票说明发票说明"}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private CalculateResultBean calculate_result;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public CalculateResultBean getCalculate_result() {
        return calculate_result;
    }

    public void setCalculate_result(CalculateResultBean calculate_result) {
        this.calculate_result = calculate_result;
    }

    public static class CalculateResultBean {
        /**
         * total_money : 4
         * coupon_free_money : 0
         * promotion_free_money : 0
         * pay_money : 4
         * merchants : [{"merchant_id":1,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg","name":"测试的店铺"}]
         * shopping_carts : [{"goods":{"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":1},"shopping_cart_id":104,"goods_id":1,"quantity":4,"buy_limit":2}]
         * invoice_desc : 发票说明发票说明发票说明发票说明发票说明发票说明发票说明
         */
        private Address.AddressesBean.DataBean address;
        private double total_money;
        private double coupon_free_money;
        private double promotion_free_money;
        private double pay_money;
        private String invoice_desc;
        private List<MerchantsBean> merchants;
        private List<ShoppingCartsBean> shopping_carts;

        public Address.AddressesBean.DataBean getAddress() {
            return address;
        }

        public void setAddress(Address.AddressesBean.DataBean address) {
            this.address = address;
        }

        public double getTotal_money() {
            return total_money;
        }

        public void setTotal_money(double total_money) {
            this.total_money = total_money;
        }

        public double getCoupon_free_money() {
            return coupon_free_money;
        }

        public void setCoupon_free_money(double coupon_free_money) {
            this.coupon_free_money = coupon_free_money;
        }

        public double getPromotion_free_money() {
            return promotion_free_money;
        }

        public void setPromotion_free_money(double promotion_free_money) {
            this.promotion_free_money = promotion_free_money;
        }

        public double getPay_money() {
            return pay_money;
        }

        public void setPay_money(double pay_money) {
            this.pay_money = pay_money;
        }

        public String getInvoice_desc() {
            return invoice_desc;
        }

        public void setInvoice_desc(String invoice_desc) {
            this.invoice_desc = invoice_desc;
        }

        public List<MerchantsBean> getMerchants() {
            return merchants;
        }

        public void setMerchants(List<MerchantsBean> merchants) {
            this.merchants = merchants;
        }

        public List<ShoppingCartsBean> getShopping_carts() {
            return shopping_carts;
        }

        public void setShopping_carts(List<ShoppingCartsBean> shopping_carts) {
            this.shopping_carts = shopping_carts;
        }

        public static class MerchantsBean {
            /**
             * merchant_id : 1
             * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg
             * name : 测试的店铺
             */

            private int merchant_id;
            private String thumb;
            private String name;

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        public static class ShoppingCartsBean {
            /**
             * goods : {"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":1}
             * shopping_cart_id : 104
             * goods_id : 1
             * quantity : 4
             * buy_limit : 2
             */

            private GoodsBean goods;
            private int shopping_cart_id;
            private int goods_id;
            private int quantity;
            private int buy_limit;

            public GoodsBean getGoods() {
                return goods;
            }

            public void setGoods(GoodsBean goods) {
                this.goods = goods;
            }

            public int getShopping_cart_id() {
                return shopping_cart_id;
            }

            public void setShopping_cart_id(int shopping_cart_id) {
                this.shopping_cart_id = shopping_cart_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public int getBuy_limit() {
                return buy_limit;
            }

            public void setBuy_limit(int buy_limit) {
                this.buy_limit = buy_limit;
            }

            public static class GoodsBean {
                /**
                 * goods_id : 1
                 * name : 化肥
                 * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
                 * price : 1
                 */

                private int goods_id;
                private String name;
                private String thumb;
                private int price;

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public int getPrice() {
                    return price;
                }

                public void setPrice(int price) {
                    this.price = price;
                }
            }
        }


    }
}

